package com.tedu.shoot;

import com.tedu.shoot.img.Images;

import java.awt.image.BufferedImage;

/**
 * Date：2021年08月
 * Author：程Sir
 * Content:
 *  天空类
 */
public class Sky extends FlyingObject {

    private int speed;

    @Override
    public String toString() {
        return "Sky{" +
                "speed=" + speed +
                ", wdith=" + wdith +
                ", height=" + height +
                ", x=" + x +
                ", y=" + y +
                '}';
    }

    public Sky(){
        speed = 2;
        this.wdith = 512;
        this.height= 768;
        this.x = 0;
        this.y = 0;
    }
    @Override
    public BufferedImage getImage() {
        return Images.skyImage;
    }
}
